package StudyGroup;

/*
* 随便一个三位数，输出它的百位，十位，个位
* 2022.1.10
* Creat By Code J
* */
public class TestOneStr {
    public static void main(String[] args){
        int num1 = 678;

        System.out.println("百位的数字是： " + (num1 / 100));
        System.out.println("十位的数字是： " + (num1 % 100 / 10));
        System.out.println("个位的数字是： " + (num1 % 10 ));

    }
}

